﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace jcc.Helpers
{
    public class folderWrapper
    {
        private int id;
        private string name;
        private int parent_id;
        private List<folderWrapper> children;

        public int ID { get { return id; } }
        public string Name { get { return name; } set { name = value; } }
        public int Parent_ID { get { return parent_id; } set { parent_id = value; } }
        public List<folderWrapper> Children { get { return children; } }
        public override string ToString()
        {
            return name;
        }

        public folderWrapper(int folderID)
        {
            parent_id = 0;
            id = folderID;
            name = "";
            children = new List<folderWrapper>();
        }
        public void AddChild(folderWrapper folder)
        {
            children.Add(folder);
        }
    }
}
